<div class="condition-order">
  <div class="item" style="border-bottom:5px solid #f5f5f5;">
    <span>条件类型</span>
    <div>
      <span class="active" style="width:2.5rem" ng-class="{actived:req_data.trigger_type==='1'}" ng-click="req_data.trigger_type='1'">价格</span>
      <span class="active" ng-class="{actived:req_data.trigger_type==='2'}" ng-click="req_data.trigger_type='2'">时点</span>
    </div>
  </div>
  <div class="item" ng-show="req_data.trigger_type==='1'">
    <span>触发方向</span>
    <div>
      <span class="active" style="width:2.5rem" ng-class="{actived:req_data.trigger_direction==='2'}" ng-click="req_data.trigger_direction='2'">大于等于</span>
      <span class="active" ng-class="{actived:req_data.trigger_direction==='1'}" ng-click="req_data.trigger_direction='1'">小于等于</span>
    </div>
  </div>
  <div class="item" style="border-bottom:5px solid #f5f5f5;" ng-show="req_data.trigger_type==='1'">
    <span>触发价格</span>
    <div>
      <input type="text" placeholder="条件单触发价：" ng-model="req_data.efficient_price">
    </div>
  </div>
  <div class="item" ng-show="req_data.trigger_type==='2'">
    <span>触发日期</span>
    <div>
      <input type="date" ng-model="req_data.cust_efficient_date">
    </div>
  </div>
  <div class="item" style="border-bottom:5px solid #f5f5f5;" ng-show="req_data.trigger_type==='2'">
    <span>触发时点</span>
    <div>
      <input type="time" ng-model="req_data.cust_efficient_time">
    </div>
  </div>

  <div class="item item1">
    <span>策略标的</span>
    <div>
      <p ng-bind="run_details.product_code+'/'+req_data.product_name"></p>
    </div>
  </div>
  <div class="item item1" ng-if="condition_type==='1'">
    <span>策略执行金</span>
    <div>
      <p ng-bind="req_data.borrow_balance"></p>
    </div>
  </div>
  <div class="item item1" ng-if="condition_type==='1'">
    <span>策略保证金</span>
    <div>
      <p ng-bind="'￥'+req_data.deposit_balance"></p>
    </div>
  </div>
  <div class="item item1" style="border-bottom:5px solid #f5f5f5;" ng-if="condition_type==='1'">
    <span>综合服务费</span>
    <div>
      <p ng-bind="'￥'+req_data.fare"></p>
    </div>
  </div>
  <div class="item item1" ng-if="condition_type==='2'">
    <span>策略编号</span>
    <div>
      <p ng-bind="run_details.serial_no"></p>
    </div>
  </div>
  <div class="item item1" ng-if="condition_type==='2'">
    <span>股票数量</span>
    <div>
      <p ng-bind="run_details.open_amount+'股'"></p>
    </div>
  </div>
  <div class="item item1" style="border-bottom:5px solid #f5f5f5;" ng-if="condition_type==='2'">
    <span>买入价格</span>
    <div>
      <p ng-bind="'￥'+run_details.open_price"></p>
    </div>
  </div>
  <div class="xieyi-condition">
    <span ng-class="{actived:agree}" ng-click="agree = !agree"></span>
    <span>我已阅读并同意</span>
    <span style="color:skyblue">《服务协议》</span>
  </div>
  <div class="add" ng-click="ok()">
    添加
  </div>
  <div class="tip" ng-if="condition_type==='1'">
    <p>特别提示：</p>
    <p>*本页所述条件单皆为（创建策略）条件单</p>
    <p>1. 交易日14:45:00-15:00:00不能添加条件单；</p>
    <p>2. 交易日14:45:00之前创建的条件单，当天14:49:00之前有效；</p>
    <p>3. 交易日15:00:00之后或非交易日创建的条件单下个交易日14:49:00之前有效；</p>
    <p>4. 时点条件单中的触发时点必须在9:30:00~11:29:00或13:00:00~14:49:00之内</p>
    <p>5. 交易日14:45:00之前创建的时点条件单，条件中的触发日期必须是当日，触发时点必须晚于下单时点；</p>
    <p>6. 交易日15:00:00之后或非交易日创建的时点条件单，条件中的触发日期必须是下个交易日。</p>
  </div>
  <div class="tip" ng-if="condition_type==='2'">
    <p>特别提示：</p>
    <p>*本页所述条件单皆为（卖出策略）条件单</p>
    <p>1. 在策略到时前5分钟之前，可对可卖的策略添加条件单；</p>
    <p>2. 条件单在该条件单下单成功时的标的策略的策略到时前1分钟之前有效，即条件单的有效期不会因标的策略延期而改变；</p>
    <p>3. 价格条件单中的触发价格必须介于止损价与止盈价；</p>
    <p>4. 时点条件单中的触发时点必须在9:30:00~11:29:00（或策略到时前1分钟）或13:00:00~14:49:00（或策略到时前1分钟）之内；</p>
    <p>5. 在交易日14:45:00之前添加的时点条件单，条件中的触发日期必须是当日，触发时点必须晚于下单时点；</p>
    <p>6. 在交易日15:00:00之后或非交易日添加的时点条件单，条件中的触发日期必须是下个交易日。</p>
  </div>
</div>